]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
sessionMode: Allow extensions at the login and unlock screens
authorRay Strode <rstrode@redhat.com>
Tue, 10 Aug 2021 19:31:00 +0000 (15:31 -0400)
committerMarge Bot <marge-bot@gnome.org>
Thu, 14 Oct 2021 18:40:53 +0000 (18:40 +0000)
Now extensions can specify which session modes they work in,
but specifying the login screen or unlock screen session modes in
an extensions metadata still won't work, because those session
modes disallow extensions.

This commit fixes that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1967>

js/ui/extensionSystem.js
js/ui/sessionMode.js

index 4e9ebb0f77509bfad01ab0f6ae7687d50ad5249c..860f5fbc343c8988cdd29b18dd4239facfeb3728 100644 (file)
@@ -74,7 +74,7 @@ var ExtensionManager = class {
     }
 
     _extensionSupportsSessionMode(uuid) {
-        let extension = this.lookup(uuid);
+        const extension = this.lookup(uuid);
 
         if (!extension)
             return false;
index afcd67cfd22617c46880e4b4b996e384d5e62445..7629a509b572355a6196220b717bde867761a622 100644 (file)
@@ -42,6 +42,7 @@ const _modes = {
     },
 
     'gdm': {
+        allowExtensions: true,
         hasNotifications: true,
         isGreeter: true,
         isPrimary: true,
@@ -58,6 +59,7 @@ const _modes = {
     },
 
     'unlock-dialog': {
+        allowExtensions: true,
         isLocked: true,
         unlockDialog: undefined,
         components: ['polkitAgent', 'telepathyClient'],